package com.lhc.domain.response;

import lombok.Getter;

/**
 * 响应码
 */
public enum ResponseEnum {
    SUCCESS(200, "响应成功", true),
    ERROR(500, "响应失败", false);


    private int code;

    private String message;

    private boolean status;

    ResponseEnum(int code, String message, boolean status) {
        this.code = code;
        this.message = message;
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
